package com.hd.entity.doc.article;
import com.hd.entity.Attach;

import java.io.Serializable;
import java.util.*;

import javax.persistence.*;

/**
 * 文章 实体类
 * @author <a href="mailto:hzhh123@sina.cn">hzhh123</a>
 * @date 2018-08-13 04:20
 *
 * @version 1.0
 *
 */
@Entity
@Table(name = "doc_article")
public class Article implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	* id
	*/
	@Id
	@Column(name="id")
	private String id;
	/**
	* 标题
	*/
	@Column(name="title")
	private String title;
	/**
	* 类型
	*/
	@Column(name="type")
	private String type;
	/**
	* 类型
	*/
	@Column(name="typeName")
	private String typeName;
	/**
	* 标签
	*/
	@Column(name="tags")
	private String tags;
	/**
	* 内容
	*/
	@Column(name="content",columnDefinition="TEXT")
	private String content;
	/**
	* 内容
	*/
	@Column(name="htmlContent",columnDefinition="TEXT")
	private String htmlContent;
	/**
	 * 创建时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	/**
	 * 最新修改时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	private Date lastUpdateTime;
	@Column(name = "attach_ids",columnDefinition = "TEXT")
	private String attachIds;//附件
	@Transient
	private List<Attach>attachs =new ArrayList<Attach>();

	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id=id;
	}
	public String getTitle(){
		return title;
	}
	public void setTitle(String title){
		this.title=title;
	}
	public String getType(){
		return type;
	}
	public void setType(String type){
		this.type=type;
	}
	public String getTypeName(){
		return typeName;
	}
	public void setTypeName(String typeName){
		this.typeName=typeName;
	}
	public String getTags(){
		return tags;
	}
	public void setTags(String tags){
		this.tags=tags;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getHtmlContent() {
		return htmlContent;
	}
	public void setHtmlContent(String htmlContent) {
		this.htmlContent = htmlContent;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}
	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getAttachIds() {
		return attachIds;
	}

	public void setAttachIds(String attachIds) {
		this.attachIds = attachIds;
	}

	public List<Attach> getAttachs() {
		return attachs;
	}

	public void setAttachs(List<Attach> attachs) {
		this.attachs = attachs;
	}
}
